package com.ryskoo.customer.customerintegral.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 会员积分
 * @author BeHappy
 */
@Entity
@Table(name = "cus_customer_integral")
public class CustomerIntegralPO extends BasicPO {

    private static final long serialVersionUID = -7624112269342505515L;
    /**
     * 会员uuid
     */
    @Column(name = "customer_uuid", columnDefinition = "char", length = 32)
    private String customerUuid;

    /**
     * 商户uuid
     */
    @Column(name = "vendor_uuid", columnDefinition = "char", length = 32)
    private String vendorUuid;

    /**
     * 总积分数
     */
    @Column(name = "integral")
    private int integral;

    /**
     * 可用积分数
     */
    @Column(name = "usable_integral")
    private int usableIntegral;

    public String getCustomerUuid() {
        return customerUuid;
    }

    public void setCustomerUuid(String customerUuid) {
        this.customerUuid = customerUuid;
    }

    public String getVendorUuid() {
        return vendorUuid;
    }

    public void setVendorUuid(String vendorUuid) {
        this.vendorUuid = vendorUuid;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public int getUsableIntegral() {
        return usableIntegral;
    }

    public void setUsableIntegral(int usableIntegral) {
        this.usableIntegral = usableIntegral;
    }

    @Override
    public String toString() {
        return "CustomerIntegralPO{" +
                "customerUuid='" + customerUuid + '\'' +
                ", vendorUuid='" + vendorUuid + '\'' +
                ", integral=" + integral +
                ", usableIntegral=" + usableIntegral +
                '}';
    }
}
